package com.lx;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @Description TODO
 * @Author lx
 * @Date 2021/1/6 11:49
 **/
public class test {
    public static void main(String[] args) {
        //订单生成时间
        String date= LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd"));
        System.out.println(date);
    }
}
